#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QPushButton>
#include <QLineEdit>

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = 0);

    void setCurrentActive(QLineEdit* &editWriteto);

    void clear();

    void init();

    ~Dialog();

private:
    QPushButton *btn1;
    QPushButton *btn2;
    QPushButton *btn3;
    QPushButton *btn4;
    QPushButton *btn5;
    QPushButton *btn6;
    QPushButton *btn7;
    QPushButton *btn8;
    QPushButton *btn9;
    QPushButton *btn0;
    QPushButton *btnC;
    QPushButton *btnL;
    QPushButton *btnEnter;
    QPushButton *btnClear;

    QPushButton *btnBack;
    QPushButton *btnPoint;
    QPushButton *btnHyphen;

    QLineEdit *activeEdit;
    QString strBuffer;

    void setStr();

signals:
    void sentStr(QString a);

protected:
    virtual bool eventFilter(QObject *watched,QEvent *e);
};

#endif // DIALOG_H
